package com.fulihui.information.biz.job;

import com.fulihui.information.dal.dataobj.InfoContentExample;
import com.fulihui.information.dal.mapper.InfoContentMapper;
import com.fulihui.information.enums.EContentStatus;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author Willard.Hu on 2017/2/9 0009.
 */
public class RemoveDeletedContentJob     {
    @Autowired
    private InfoContentMapper infoContentMapper;

     public void execute(   ) {
        InfoContentExample example = new InfoContentExample();
        example.createCriteria().andStatusEqualTo(EContentStatus.DELETE.getCode());
        infoContentMapper.deleteByExample(example);
    }
}
